package com.site.wisdom_construction.service.publicModule;

import com.site.wisdom_construction.dao.publicModule.BadnessWorkersTypeDao;
import com.site.wisdom_construction.entity.publicModule.BadnessWorkersType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/8
 * @Description
 */
@Service
public class BadnessWorkersTypeService implements BadnessWorkersTypeDao {
    @Autowired
    private BadnessWorkersTypeDao badnessWorkersTypeDao;

    @Override
    public int insertBadnessWorkersType(Map map) {
        return badnessWorkersTypeDao.insertBadnessWorkersType(map);
    }

    @Override
    public int deleteBadnessWorkersType(Map map) {
        return badnessWorkersTypeDao.deleteBadnessWorkersType(map);
    }

    @Override
    public int updateBadnessWorkersType(Map map) {
        return badnessWorkersTypeDao.updateBadnessWorkersType(map);
    }

    @Override
    public List<BadnessWorkersType> findBadnessWorkersTypeByPage(Map map) {
        return badnessWorkersTypeDao.findBadnessWorkersTypeByPage(map);
    }

    @Override
    public long Total(Map map) {
        return badnessWorkersTypeDao.Total(map);
    }

    @Override
    public List<BadnessWorkersType> selectBadnessWorkersType(Map map) {
        return badnessWorkersTypeDao.selectBadnessWorkersType(map);
    }

    @Override
    public List<BadnessWorkersType> findBadnessWorkersTypeByName(Map map) {
        return badnessWorkersTypeDao.findBadnessWorkersTypeByName(map);
    }
}
